package com.jiugang.cardump.service;

import com.jiugang.cardump.entity.Alert;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiugang.cardump.result.ResultInfoV110;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2021-08-19
 */
public interface AlertService {

    ResultInfoV110 selectEquipmentAlerAlltList(String equipmentId,Integer page, Integer size, String StartTime, String endTime);
    /**
     * @param equipmentId 设备Id
     * @return ResultInfoV110
     * @Description 根据设备Id查询报警状态
     */
      ResultInfoV110 selectEquipmentAlertList(String equipmentId);

    /**@Description  统计过去一小时内的报警数量,将过去过去一小时分成12个等分区间
     * @param equipmentId
     * @return
     */
    ResultInfoV110 staticticsAlertInOneHour(@Param("equipmentId") String equipmentId);
}
